package com.todo.member.infrastructure.mapper;

import com.todo.member.infrastructure.entity.po.MemberPrivilegeInfoPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author azhebuxing
 * @date 2025/1/21 16:21
 * @description
 */
@Mapper
public interface MemberPrivilegeInfoMapper {

    int insertMemberPrivilegeInfoPO(MemberPrivilegeInfoPO memberPrivilegeInfoPO);

    int updateMemberPrivilegeInfoPOById(MemberPrivilegeInfoPO memberPrivilegeInfoPO);

    Boolean removeMemberPrivilegeInfoPOById(@Param("id") Long id);

    MemberPrivilegeInfoPO queryMemberPrivilegeInfoPOById(@Param("id") Long id);

    MemberPrivilegeInfoPO queryMemberPrivilegeInfoPOByPrivilegeCode(@Param("privilegeCode") String privilegeCode);

    MemberPrivilegeInfoPO queryMemberPrivilegeInfoPOByPrivilegeName(@Param("privilegeName") String privilegeName);

    List<MemberPrivilegeInfoPO> queryMemberPrivilegeInfoPOByCodeList(@Param("privilegeCodeList") List<String> privilegeCodeList);
}
